package com.kingdee.eas.ec.garden.settle.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.dao.IObjectPK;
import java.util.Map;
import java.math.BigDecimal;
import com.kingdee.eas.ec.contract.biz.app.ContractPaymentBillControllerBean;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.ec.contract.biz.ContractPaymentBillCollection;
import com.kingdee.eas.framework.CoreBaseCollection;
import com.kingdee.eas.ec.garden.settle.OwerSettBillInfo;
import com.kingdee.eas.framework.CoreBillBaseCollection;
import com.kingdee.eas.framework.CoreBaseInfo;
import com.kingdee.eas.framework.BillBaseCollection;
import com.kingdee.eas.ec.garden.settle.OwerSettBillCollection;
import com.kingdee.eas.ec.basedata.BaseBillCollection;
import com.kingdee.eas.framework.ObjectBaseCollection;
import java.util.List;
import com.kingdee.eas.ec.contract.framework.ContractBaseBillCollection;



public abstract class AbstractOwerSettBillControllerBean extends ContractPaymentBillControllerBean implements OwerSettBillController
{
    protected AbstractOwerSettBillControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("7AA12C30");
    }

    public OwerSettBillInfo getOwerSettBillInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("12eaa0ff-f8a9-4301-859a-dd16f6db3756"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            OwerSettBillInfo retValue = (OwerSettBillInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public OwerSettBillInfo getOwerSettBillInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("bfc4b62c-55f2-49cf-aa7d-ca600752b8c5"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            OwerSettBillInfo retValue = (OwerSettBillInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public OwerSettBillInfo getOwerSettBillInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("6143bdb7-f71f-4c33-8ea9-ac1f3e50e3fa"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            OwerSettBillInfo retValue = (OwerSettBillInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public OwerSettBillCollection getOwerSettBillCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("b53869f2-fe48-49a3-8c2a-8ec353a9de48"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            OwerSettBillCollection retValue = (OwerSettBillCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public OwerSettBillCollection getOwerSettBillCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("7fd9c85f-60ea-4f94-9314-f3a1ee18ac04"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            OwerSettBillCollection retValue = (OwerSettBillCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public OwerSettBillCollection getOwerSettBillCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("082ab68a-c3ab-4a43-8062-1db3099ba7c7"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            OwerSettBillCollection retValue = (OwerSettBillCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public List getItemsValue(Context ctx, Map param) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ec5a7ea5-258f-439a-9f85-0c3cb92bebb7"), new Object[]{ctx, param});
            invokeServiceBefore(svcCtx);
            List retValue = (List)_getItemsValue(ctx, param);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract List _getItemsValue(Context ctx, Map param) throws BOSException, EASBizException;

    public List getMacValue(Context ctx, Map param) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("012b00cf-9666-43ae-b24a-058a797f1c2e"), new Object[]{ctx, param});
            invokeServiceBefore(svcCtx);
            List retValue = (List)_getMacValue(ctx, param);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract List _getMacValue(Context ctx, Map param) throws BOSException, EASBizException;

    public List getCarValue(Context ctx, Map param) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("e35e9253-452d-4897-beb9-3919a02cc7cc"), new Object[]{ctx, param});
            invokeServiceBefore(svcCtx);
            List retValue = (List)_getCarValue(ctx, param);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract List _getCarValue(Context ctx, Map param) throws BOSException, EASBizException;

    public List getWatValue(Context ctx, Map param) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("1ecbb87c-73bc-4e28-86d2-a5c3c25fa2ec"), new Object[]{ctx, param});
            invokeServiceBefore(svcCtx);
            List retValue = (List)_getWatValue(ctx, param);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract List _getWatValue(Context ctx, Map param) throws BOSException, EASBizException;

    public List getRubValue(Context ctx, Map param) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("3dd2208d-1ef5-4386-8d0b-fb1ea0bf7eb5"), new Object[]{ctx, param});
            invokeServiceBefore(svcCtx);
            List retValue = (List)_getRubValue(ctx, param);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract List _getRubValue(Context ctx, Map param) throws BOSException, EASBizException;

    public List getPacValue(Context ctx, Map param) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("6b00554d-fd9c-4ddf-823e-32c521e0c825"), new Object[]{ctx, param});
            invokeServiceBefore(svcCtx);
            List retValue = (List)_getPacValue(ctx, param);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract List _getPacValue(Context ctx, Map param) throws BOSException, EASBizException;

    public BigDecimal getMatInvAmount(Context ctx, Map param) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("dc3da5c3-e900-474c-9754-4a4c7d8b8c51"), new Object[]{ctx, param});
            invokeServiceBefore(svcCtx);
            BigDecimal retValue = (BigDecimal)_getMatInvAmount(ctx, param);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            this.setRollbackOnly();
            throw ex;
        } catch (EASBizException ex0) {
            this.setRollbackOnly();
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected abstract BigDecimal _getMatInvAmount(Context ctx, Map param) throws BOSException, EASBizException;

    public ContractPaymentBillCollection getContractPaymentBillCollection (Context ctx) throws BOSException
    {
    	return (ContractPaymentBillCollection)(getOwerSettBillCollection(ctx).cast(ContractPaymentBillCollection.class));
    }
    public ContractPaymentBillCollection getContractPaymentBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ContractPaymentBillCollection)(getOwerSettBillCollection(ctx, view).cast(ContractPaymentBillCollection.class));
    }
    public ContractPaymentBillCollection getContractPaymentBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (ContractPaymentBillCollection)(getOwerSettBillCollection(ctx, oql).cast(ContractPaymentBillCollection.class));
    }
    public ContractBaseBillCollection getContractBaseBillCollection (Context ctx) throws BOSException
    {
    	return (ContractBaseBillCollection)(getOwerSettBillCollection(ctx).cast(ContractBaseBillCollection.class));
    }
    public ContractBaseBillCollection getContractBaseBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ContractBaseBillCollection)(getOwerSettBillCollection(ctx, view).cast(ContractBaseBillCollection.class));
    }
    public ContractBaseBillCollection getContractBaseBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (ContractBaseBillCollection)(getOwerSettBillCollection(ctx, oql).cast(ContractBaseBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx) throws BOSException
    {
    	return (BaseBillCollection)(getOwerSettBillCollection(ctx).cast(BaseBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BaseBillCollection)(getOwerSettBillCollection(ctx, view).cast(BaseBillCollection.class));
    }
    public BaseBillCollection getBaseBillCollection (Context ctx, String oql) throws BOSException
    {
    	return (BaseBillCollection)(getOwerSettBillCollection(ctx, oql).cast(BaseBillCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx) throws BOSException
    {
    	return (BillBaseCollection)(getOwerSettBillCollection(ctx).cast(BillBaseCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BillBaseCollection)(getOwerSettBillCollection(ctx, view).cast(BillBaseCollection.class));
    }
    public BillBaseCollection getBillBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (BillBaseCollection)(getOwerSettBillCollection(ctx, oql).cast(BillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBillBaseCollection)(getOwerSettBillCollection(ctx).cast(CoreBillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBillBaseCollection)(getOwerSettBillCollection(ctx, view).cast(CoreBillBaseCollection.class));
    }
    public CoreBillBaseCollection getCoreBillBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBillBaseCollection)(getOwerSettBillCollection(ctx, oql).cast(CoreBillBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx) throws BOSException
    {
    	return (ObjectBaseCollection)(getOwerSettBillCollection(ctx).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ObjectBaseCollection)(getOwerSettBillCollection(ctx, view).cast(ObjectBaseCollection.class));
    }
    public ObjectBaseCollection getObjectBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (ObjectBaseCollection)(getOwerSettBillCollection(ctx, oql).cast(ObjectBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getOwerSettBillCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getOwerSettBillCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getOwerSettBillCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}